<template>
  <div class="home" v-html="detail.content"></div>
</template>
<script setup>
import { ref, onMounted } from 'vue';
import { getProductInfo } from '@/api/material';
const detail = ref({})


onMounted(() => {
  getProductInfo().then(res => {
    console.log(res)
    if (res.data.data.length) {
      detail.value = res.data.data[0]
    }
    console.log(detail.value)
  })
})
</script>
<style scoped lang="less">
.home {
  padding-top: 70px;
}
</style>
